package bankapp.view;

import bankapp.model.BankFactory;
import framework.view.ActionButton;
import framework.view.TopPanel;
import javax.swing.JButton;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author ThanhNguyen
 */
public class BankUITopPanel extends TopPanel {

    public BankUITopPanel() {
        BankFactory bankFactory = (BankFactory) BankFactory.getInstance();
        JButton btnAddInterest = new ActionButton(bankFactory.createAddInterestController());
        btnAddInterest.setText("Add Interest");
        add(btnAddInterest);
        btnAddInterest.setBounds(430, 8, 120, 33);
    }
}
